# Input several integers without knowing how many of them there are

print("Please input several integers in a line below (separated by spaces): ")

integers_as_string = input().split()

integers = []

for num_as_str in integers_as_string:
    if num_as_str.isdigit():
        integers.append(int(num_as_str))

integers.sort()

print(integers)

print("Their average is {}.".format(sum(integers)/len(integers)))
